feat(hooks): add run_windows support#10202
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughAdds optional ChangesWindows-specific hook command support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR adds
Confidence Score: 5/5Change is safe to merge; platform selection is consistent across parsing and execution, and existing hook behavior on all platforms is unaffected. The template rendering and execution paths both use the same No files require special attention. Important Files Changed
Reviews (4): Last reviewed commit: "refactor(hooks): inline run_windows sele..." | Re-trigger Greptile |
|
Addressed Greptile’s template-rendering concern in f7396e2 by rendering only the selected hook command variant, so inactive This comment was generated by an AI coding assistant. |
|
@coderabbitai review This comment was generated by an AI coding assistant. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get the PR details and changed files
gh pr view 10202 --repo jdx/mise --json title,body,files,commits,headRefName
echo "--- DIFF ---"
gh pr diff 10202 --repo jdx/miseLength of output: 12953 🏁 Script executed: #!/bin/bash
# Check HookDef serde attributes around the Run variant and any related derive usage
rg -n "HookDef|serde\|deserialize\|Deserialize" src/hooks.rs | head -80
echo "--- HookDef enum definition ---"
ast-grep --pattern 'pub enum HookDef {
$$$
}' --lang rust
echo "--- check for any derive on HookDef ---"
rg -n -B2 "enum HookDef" src/hooks.rsLength of output: 2063
Review
|
|
@coderabbitai review This comment was generated by an AI coding assistant. |
|
This comment was generated by an AI coding assistant. 🧠 Learnings used✅ Action performedFull review finished. |
|
@coderabbitai review This comment was generated by an AI coding assistant. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get the latest PR details and commits
gh pr view 10202 --repo jdx/mise --json title,state,headRefName,commits,updatedAt
echo "--- RECENT COMMITS ---"
gh pr view 10202 --repo jdx/mise --json commits --jq '.commits[-5:] | .[] | {oid: .oid, message: .messageHeadline, date: .committedDate}'
echo "--- FULL DIFF ---"
gh pr diff 10202 --repo jdx/miseLength of output: 11794
|
Summary
run_windowsto inline hook tables, matching task-style Windows command selectionAddresses #10139.
Testing
RUSTC_WRAPPER= cargo test hooks::testsMISE_TRUSTED_CONFIG_PATHS="$PWD" RUSTC_WRAPPER= mise run buildMISE_TRUSTED_CONFIG_PATHS="$PWD" CARGO_TARGET_DIR=/home/risu/.cache/cargo-target/mise-409845c58888dcc6 RUSTC_WRAPPER= mise run --skip-deps test:e2e e2e/config/test_hooks_run_windowsgit diff --checkSummary by CodeRabbit
New Features
Documentation
Tests